/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sge.Entidades;

/**
 *
 * @author victor
 */
public class EventoMaterialPK {

    private int eventoIdEvento;
    private int materialIdMaterial;

    public EventoMaterialPK() {
    }

    public EventoMaterialPK(int eventoIdEvento, int materialIdMaterial) {
        this.eventoIdEvento = eventoIdEvento;
        this.materialIdMaterial = materialIdMaterial;
    }

    public int getEventoIdEvento() {
        return eventoIdEvento;
    }

    public void setEventoIdEvento(int eventoIdEvento) {
        this.eventoIdEvento = eventoIdEvento;
    }

    public int getMaterialIdMaterial() {
        return materialIdMaterial;
    }

    public void setMaterialIdMaterial(int materialIdMaterial) {
        this.materialIdMaterial = materialIdMaterial;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (int) eventoIdEvento;
        hash += (int) materialIdMaterial;
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        if (!(object instanceof EventoMaterialPK)) {
            return false;
        }
        EventoMaterialPK other = (EventoMaterialPK) object;
        if (this.eventoIdEvento != other.eventoIdEvento) {
            return false;
        }
        if (this.materialIdMaterial != other.materialIdMaterial) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "sge.Entidades.EventoMaterialPK[ eventoIdEvento=" + eventoIdEvento + ", materialIdMaterial=" + materialIdMaterial + " ]";
    }
}
